﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Interview_Prov.Controls.Answers
{
    public partial class AnswerText : System.Web.UI.UserControl
    {
        public string AnswerResult { get; set; }
        public bool EditMode { get; set; }

        protected void Page_Load(object sender, EventArgs e)
        {
            this.AnswerResult = answer_text.Text;
            if (EditMode)
            {
                answer_text.Enabled = false;
                answer_text.Text = "-->Text edit field";
            }
        }

        public int AnswerIndex { get; set; }

        protected void answer_text_TextChanged(object sender, EventArgs e)
        {
            this.AnswerResult = answer_text.Text;
        }
    }
}